<%@page import="com.situ.web.entity.Student"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="bootstrap-3.3.7-dist/css/bootstrap.css"/>
</head>
<body>
	<a href="${pageContext.request.contextPath}/student_insert.jsp">添加</a>
	<table class="table table-striped table-bordered table-hover table-condensed">
		<tr>
			<th>ID</th>
			<th>名字</th>
			<th>年龄</th>
			<th>性别</th>
			<th>删除</th>
			<th>修改</th>
		</tr>
		<c:forEach items="${list}" var="student">
			<tr>
				<td>${student.id}</td>
				<td>${student.name}</td>
				<td>${student.age}</td>
				<td>${student.gender}</td>
				<td><a href="/JavaWeb1912/student?method=delete&id=${student.id}">删除</a></td>
				<td><a href="/JavaWeb1912/student?method=findById&id=${student.id}">修改</a></td>
			</tr>
		</c:forEach>
		
	</table>
</body>
</html>